﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IBupro.Models.DiplomProjectLectorModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%:Html.Translate("edit") %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Edit diplom project <%:Model.Name %></h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Fields</legend>
            
            <div class="editor-label">
                <%:Html.Translate("name") %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Name) %>
                <%: Html.ValidationMessageFor(model => model.Name) %>
            </div>
            
             <div class="editor-label">
                <%:Html.Translate("shortcut") %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Shortcut) %>
                <%: Html.ValidationMessageFor(model => model.Shortcut) %>
            </div>

            <div class="editor-label">
                <%:Html.Translate("tags") %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Tags) %>
                <%: Html.ValidationMessageFor(model => model.Tags) %>
            </div>
            
            <div class="editor-label">
                <%:Html.Translate("detail") %>
            </div>
            <div class="editor-field">
                <%: Html.TextAreaFor(model => model.Detail,10,30,null) %>
                <%: Html.ValidationMessageFor(model => model.Detail) %>
            </div>
            
            <div class="editor-label">
                <%:Html.Translate("literature") %>
			</div>
			<div class="editor-field">
				<%: Html.TextAreaFor(model => model.Literature,10,30,null) %>
				<%: Html.ValidationMessageFor(model => model.Literature) %>
			</div>            
            
            <div class="editor-label">
                 <%:Html.Translate("projectType") %>
            </div>
            <div class="editor-field">
                <%: Html.DropDownList("ProjectTypeId",ViewData["project_types"] as SelectList) %>
                <%: Html.ValidationMessageFor(model => model.ProjectTypeId) %>
            </div>

            <div class="editor-label">
                <label for="ProjectTypeId"><%: Html.Translate("department") %></label>
            </div>
            <div class="editor-field">
                <%: Html.DropDownList("DepartmentId",ViewData["departments"] as SelectList) %>
                <%: Html.ValidationMessageFor(model => model.DepartmentId) %>
            </div>
            

            
                <input type="submit" value="<%:Html.Translate("save")%>" />
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

